package com.shcowin.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.shcowin.entity.News;

public interface NewsDao {

	public boolean add(News entity) throws DataAccessException;

	public News getById(Integer id) throws DataAccessException;

	public List<News> getAll() throws DataAccessException;

	public List<News> getByPage(int start, int end) throws DataAccessException;

	public List<News> getDynamicByPage(int start, int end) throws DataAccessException;

	public List<News> getNewsByPage(int start, int end) throws DataAccessException;

	public void del(int id) throws DataAccessException;

	public int getCount() throws DataAccessException;

	public boolean edit(News entity) throws DataAccessException;

}
